<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		 <meta charset="utf-8" />
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	    <meta http-equiv="Cache-Control" content="no-cache" />
	    <meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
		<meta content="telephone=no,email=no,address=no" name="format-detection">
		<title>代下单</title>
		<link rel="stylesheet" href="${ctxWebStatic }/css/swiper.min.css" />
		<link rel="stylesheet" href="${ctxWebStatic }/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${ctxWebStatic }/css/font-awesome.min.css" />
		<link rel="stylesheet" href="${ctxWebStatic }/css/reset.css" />
		<link rel="stylesheet" href="${ctxWebStatic }/css/index.css" />
		<script type="text/javascript" src="${ctxWebStatic }/js/jquery-1.11.1.min.js" ></script>
		<script type="text/javascript" src="${ctxWebStatic }/js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="${ctxWebStatic }/js/placeholdr.js" ></script>
		<script type="text/javascript" src="${ctxWebStatic }/js/swiper.jquery.min.js" ></script>
		<script type="text/javascript" src="${ctxWebStatic }/js/top_nav.js" ></script>
		<script type="text/javascript" src="${ctxWebStatic }/js/distpicker.min.js" ></script>
	    <script src="${ctxWebStatic }/js/checkFunc.js"></script> 
		<script>
		$(function(){
			sumAccount();
			isSatisfyFree(); 
			$('.item_amout').find('.plus').click(function(){
				var index=$(this).parents('.item_amout').find('.plus').index($(this));
				if(index ==0){
					$(this).next('input').val(parseInt($(this).next('input').val())-1);
					if($(this).next('input').val()<0){
						$(this).next('input').val(0);
					}
					
				}else{
					$(this).prev('input').val(parseInt($(this).prev('input').val())+1);
					
				}
				
				sumAccount();
			})
			
		    $('.parts_search_list').click(function(){
				$(this).parents().find("i").removeClass('search_chose_hover');
				$(this).find("i").addClass('search_chose_hover');
				var vv=$('.parts_search_list').index($(this));	
				$(".numRadio").find('input').eq(vv).click();
		     });
		     
		   	//设为默认
			$(".default_box").click(function(){
				if ($(this).parent().find("i").hasClass("search_chose_hover")) {
					$(this).parent().find("i").removeClass("search_chose_hover");
					
				} else{
					$(this).parent().find("i").addClass("search_chose_hover");
					
				}
				var Inputindex=$('.parts_search_list').index($(this));
				$(".numRadio").find('input').eq(Inputindex).click();
			});
			//选择地址后
			$(".close_page").click(function(){
				$("#proment_new_address").hide();
				$("#proment_chose_address").hide();
			})
			$(".shopping_car_confirm a").click(function(){
				$("#proment_new_address").hide();
				$("#proment_chose_address").hide();
				var chose_box = $('.chose_set_box').find('.chose_address_info_hover');
				var chose_address_id = $(chose_box).find('.chose_address_info_id').text();
				var chose_address_province = $(chose_box).find('.chose_address_info_province').text();
				var chose_address_receive = $(chose_box).find('.chose_address_info_receive').text();
				var chose_address_phone = $(chose_box).find('.chose_address_info_phone').text();
				var chose_address_address = $(chose_box).find('.chose_address_info_address').text();
				$('#receiveAreaId').val(chose_address_province);
				refreshAddress(chose_address_id,chose_address_province,chose_address_receive,chose_address_phone,chose_address_address);
			});
			//新增/修改地址确认
			$(".proment_chose_address_save a").click(function(){
				var id = $('.receiveId').val()
				var receive = $('.receiveName').val()
				var phone = $('.receivePhone').val()
				var province = $('.provinceSelect').val()
				var provinceName = $('.provinceSelect').find("option:selected").text()
				var city = $('.citySelect').val()
				var cityName = $('.citySelect').find("option:selected").text()
				var area = $('.areaSelect').val()
				var areaName = $('.areaSelect').find("option:selected").text()
				var address = $('.receiveAddress').val()
				var isDef = 0;
				if($('.address_Bomb_info').find('.default_box').find('.search_chose').hasClass('search_chose_hover')){
					isDef = 1;
				}
				if(checkFunc(receive,'checkNull') && checkFunc(phone,'checkNull') && checkFunc(province,'checkNull') && checkFunc(city,'checkNull') && checkFunc(area,'checkNull') && checkFunc(address,'checkNull') && checkFunc(phone,'phone')){
					var userId=$("#userId").val();
					$.ajax({
						type:"post",
						url:'${ctx}/sys/orders/saveAddress',
						async:false,
						data:{
							'receive':receive,
							'phone':phone,
							'province':province,
							'provinceName':provinceName,
							'city':city,
							'cityName':cityName,
							'area':area,
							'areaName':areaName,
							'address':address,
							'isDef':isDef,
							 'userId':userId
						},
						success:function(result){
							refreshAddress(result.id,result.province,result.receive,result.phone,result.provinceName+result.cityName+result.areaName+result.address);
							$('#proment_new_address').hide();
						}
					})
				}
			});
			//弹出新增地址框
			$(".js_new_address").click(function(){
				$('.receiveId').val('');
				$('.receiveName').val('');
				$('.receivePhone').val('')
				$('.provinceSelect').val('')
				$('.citySelect').val('')
				$('.areaSelect').val('')
				$('.receiveAddress').val('')
				$('.default_box').find('.search_chose').removeClass('search_chose_hover')
				$.ajax({
					url:'${ctx}/sys/orders/getProvince',
					async:false,
					success:function(result){
						var html = '<option value="">省</option>';
						if(result!=null){
							for(var i = 0;i<result.length;i++){
								var area = result[i];
								html += '<option value="'+area.id+'">'+area.name+'</option>'
							}
						}
						$('.provinceSelect').html(html)
					}
				})
				$("#proment_new_address").show();	
			});
			//省份下拉框选择事件
			$('.provinceSelect').change(function(){
				var provinceId = $(this).val();
				$.ajax({
					url:'${ctx}/sys/orders/selectByParent',
					async:false,
					data:{'id':provinceId},
					success:function(result){
						var html = '<option value="">市</option>';
						if(result!=null){
							for(var i = 0;i<result.length;i++){
								var area = result[i];
								html += '<option value="'+area.id+'">'+area.name+'</option>'
							}
						}
						$('.citySelect').html(html)
					}
				})
			})
			//市级下拉框选择事件
			$('.citySelect').change(function(){
				var cityId = $(this).val();
				$.ajax({
					url:'${ctx}/sys/orders/selectByParent',
					async:false,
					data:{'id':cityId},
					success:function(result){
						var html = '<option value="">区</option>';
						if(result!=null){
							for(var i = 0;i<result.length;i++){
								var area = result[i];
								html += '<option value="'+area.id+'">'+area.name+'</option>'
							}
						}
						$('.areaSelect').html(html)
					}
				})
			})
			$(".js_chose_address").click(function(){
				var userId=$("#userId").val();
				 $.ajax({
					url:'${ctx}/sys/orders/userAddress',
					data:{"userId":userId},
					async:false,
					success:function(result){
						if(result!=null){
							var html = '';
							for(var i = 0;i<result.length;i++){
								var address = result[i];
								if(address.isDef==0){
									html += '<div class="chose_address_info address_Bomb_info clearfix">';
								}else{
									html += '<div class="chose_address_info address_Bomb_info chose_address_info_hover clearfix">';
								}
								html += '<figure class="Settlement_address_msg">';
								html += '<p class="chose_address_info_id hide">'+address.id +'</p>';
								html += '<p class="chose_address_info_province hide">'+address.province +'</p>';
								html += '<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="chose_address_info_receive">'+address.receive +'</span></p>';
								html += '<p><em>联系方式  ：</em><span class="chose_address_info_phone">'+address.phone +'</span></p>';
								html += '<p><em>收货地址  ：</em><span class="chose_address_info_address">'+address.provinceName+address.cityName+address.areaName+address.address+'</span></p>';
								html += '<p class="set_address">当前默认</p></figure></div>';
							}
							$('.chose_set_box').html(html);
						}
					}
				})
				$("#proment_chose_address").show();	
			});
			
			$(".chose_set_box").on('click','.chose_address_info',function(){
				$(this).parent().find(".chose_address_info").removeClass("chose_address_info_hover");
				$(this).addClass("chose_address_info_hover");	
			});
			
			$('input[name="transportTypeRaDio"]').click(function(){
				var transportType = $(this).val();
				var shopping_info_box = $(".shopping_info_box p").parents('.shopping_info_box');
				if(transportType==1){
					$(shopping_info_box).find('.yf_wl').removeClass('hide');
					$(shopping_info_box).find('.yf_kd').addClass('hide');
				}else{
					$(shopping_info_box).find('.yf_wl').addClass('hide');
					$(shopping_info_box).find('.yf_kd').removeClass('hide');
				}
				$('#transportType').val(transportType);
				sumAccount();
			})
		

		})
		function sumAccount(){

			var sum_accont=0
			$('.shop_num').each(function(k,v){
				if($(v).parents('.shopping_car_item_a').find('.shop_num').length>0){
					var price=parseFloat($(v).parents('.shopping_car_item_a').find('.price_value').text());
					var num=parseInt($(v).parents('.shopping_car_item_a').find('.shop_num').val());
					
					sum_price=price*num;
					sum_accont+=sum_price
					sum_price=sum_price.toFixed(2);
					$(v).parents('.shopping_car_item_a').find('.sum_price').text(sum_price);
				}
			})
			var sum_yf_p = $(".shopping_info_box p").parents('.shopping_info_box').find('.yf_wl').find('.sum_yf');
			$(sum_yf_p).text((sum_accont*0.10).toFixed(2))
			var sum_yf=parseFloat($(sum_yf_p).text());
			if(!$(sum_yf_p).parents('.yf_wl').hasClass('hide')){
				if(!$(sum_yf_p).parents('.yf_wl').hasClass('isSatisfyFree')){
					sum_accont_total=sum_accont+sum_yf;
				}else{
					$(sum_yf_p).text('0.00');
					sum_accont_total = sum_accont;
				}
			}else{
				sum_accont_total = sum_accont;
			}
			sum_accont=sum_accont.toFixed(2);
			sum_accont_total=sum_accont_total.toFixed(2);
			$('.sum_accont').text(sum_accont);
			$('.sum_accont_all').text(sum_accont_total)
		}
		
		function isSatisfyFree(){
			sumAccount();
			var sendAreaId = $('#sendAreaId').val();
			var receiveAreaId = $('#receiveAreaId').val();
			var money = $('.sum_accont_all').text();
			if(receiveAreaId!='' && receiveAreaId !=null){
				$.ajax({
					url:'${ctx}/sys/orders/isSatisfyFree',
					data:{'sendAreaId':sendAreaId,'provinceId':receiveAreaId},
					async:false,
					success:function(result){
						if(result!=null && result!=''){
							var satisfyMoney = result.money;
							if(satisfyMoney>money){//不满足包邮条件
								$('.yf_wl').removeClass('isSatisfyFree');
							}else{
								$('.yf_wl').find('.sum_yf').text('0.00');
								$('.yf_wl').addClass('isSatisfyFree');
							}
							$('#isSatisfyFreeInput').val("1")
							$('#satisfyFreeMoney').text(satisfyMoney);
							$('#satisfyFreeShow').show();
						}else{
							$('#isSatisfyFreeInput').val("0")
							$('#satisfyFreeShow').hide();
						}
					}
				})
			}else{
				$('#satisfyFreeShow').hide();
			}
			sumAccount();
		}
		//修改地址
		function editAddress(){
			$(".js_new_address").click();
			var addressId = $('#choseAddressId').val();
			
			if(addressId!=null && addressId!=''){
				$.ajax({
					url:'${ctx}/sys/orders/getAddress',
					data:{'id':addressId},
					async:false,
					success:function(result){
						$('.receiveId').val(result.id)
						$('.receiveName').val(result.receive)
						$('.receivePhone').val(result.phone)
						$('.receiveAddress').val(result.address)
						$(".provinceSelect").find("option[value='"+result.province+"']").attr("selected",true);
						$(".provinceSelect").change()
						$(".citySelect").find("option[value='"+result.city+"']").attr("selected",true);
						$(".citySelect").change()
						$(".areaSelect").find("option[value='"+result.area+"']").attr("selected",true);
						if(result.isDef=='1'){
							$('.default_box').find('.search_chose').addClass('search_chose_hover');
						}else{
							$('.default_box').find('.search_chose').removeClass('search_chose_hover');
						}
						$("#proment_new_address").show();	
					}
				})
			}
		}
		//刷新当前选择地址
		function refreshAddress(chose_address_id,chose_address_province,chose_address_receive,chose_address_phone,chose_address_address){
			var Settlement_address = $('.Settlement_address');
			$('#choseAddressId').val(chose_address_id);
			$('#receiveAreaId').val(chose_address_province);
			$(Settlement_address).find('.settlement_address_receive').text(chose_address_receive);
			$(Settlement_address).find('.settlement_address_phone').text(chose_address_phone);
			$(Settlement_address).find('.settlement_address_address').text(chose_address_address);
			isSatisfyFree();
		}
		//提交订单
		function confirmOrder(){
			
			//获取订单内涉及到商品id
			var shoppingCartIds = '';
			$('.order_shopping_cart_id').each(function(k,v){
				shoppingCartIds += $(v).text()+',';
			})
			if(shoppingCartIds!=''){
				shoppingCartIds=shoppingCartIds.substring(0,shoppingCartIds.length-1);
				$('#shoppingCartIds').val(shoppingCartIds)
			}
			//获取地址信息
			var Settlement_address = $('.Settlement_address');
			var addressId = $('#choseAddressId').val();
			if(addressId==''){
				$('#checkShowBoxSpan').text('请选择收货地址');
		   		$('#checkShowBox').show();
		   		return false;
			}
			$('#addressIdsss').val($('#choseAddressId').val());
			
			/* $('#receivePhone').val($(Settlement_address).find('.settlement_address_phone').text())
			$('#receiveAddress').val($(Settlement_address).find('.settlement_address_address').text()) */
			//$('#vipConfirmOrderForm').submit();
			
			var addressId=$('#choseAddressId').val();
			var isFree=$("#isSatisfyFreeInput").val();
			var transportType=$("#transportType").val();
			var storeCode=$("#storeCode").val();
			var saleMan=$("#saleMan").val();
			var userId=$("#userId").val();
			$.ajax({
				type:"post",
				url : "${ctx}/sys/orders/kYong",
				data:{"id":userId},
			    dataType: "json",
			    success:function(data){
			    	var keYong=data.kyong;
			    	var shiFu=$(".sum_accont_all").text();
			    	if(keYong<shiFu){
			    		$('#checkShowBoxSpan').text('可用金额不足,请充值!');
			    		$('#checkShowBox').show();
			    	}else{
			    		var url="${ctx}/sys/orders/nextConFirm?addressId="+addressId+"&isFree="+isFree+"&transportType="+transportType+"&userId="+userId+"&storeCode="+storeCode+"&saleMan="+saleMan           
						$("#forms").attr("action",url);
						$("#forms").submit();
			    	}
			    }
			})
			
			
		}
	
	    </script>
	</head>
		<body>
		
		<!--购物车-->
		<div class=" shopping_car_box">
			<div class="container">
				<div class="row">
					<div class="pay_detail_box">
						<!--地址信息-->
						<div class="shopping_car_list">
							<h3 class="pay_detail_tit">地址信息</h3>
							<div class="Settlement_address clearfix">
								<div class="col-xs-9 Settlement_address_left pad0 clearfix">
									<figure class="col-xs-2 col-sm-1 pad0 text-center">
										<img src="${ctxWebStatic }/images/gps_address.png" alt="" />
										<p class="font-sm12">默认</p>
									</figure>
									<figure class="Settlement_address_msg col-xs-8">
									<c:if test="${empty addr}">
										<input type="hidden" value="${addr.province }" id="receiveAreaId">
										<input type="hidden" value="${addr.id }" id="choseAddressId">
										<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="settlement_address_receive">&nbsp;</span></p>
										<p><em>联系方式  ：</em><span class="settlement_address_phone">&nbsp;</span></p>
										<p><em>收货地址  ：</em><span class="settlement_address_address">&nbsp;</span></p>
									</c:if>
									<c:if test="${not empty addr}">
										<input type="hidden" value="${addr.province }" id="receiveAreaId">
										<input type="hidden" value="${addr.id }" id="choseAddressId">
										<p class="settlement_address_province hide">${addr.province }</p>
										<p><em>收件人&nbsp;&nbsp;&nbsp;&nbsp;：</em><span class="settlement_address_receive">${addr.receive }</span></p>
										<p><em>联系方式  ：</em><span class="settlement_address_phone">${addr.phone }</span></p>
										<p><em>收货地址  ：</em><span class="settlement_address_address">${addr.provinceName }${addr.cityName }${addr.areaName }${addr.address }</span></p>
									</c:if>
									</figure>
									<figure class="col-xs-3 pad0 Settlement_address_right">
										<a href="javascript:void(0)" class="js_edit_address" style="padding-top: 20px;" onclick="editAddress()">修改地址</a>
									</figure>
								</div>
								<div class="col-xs-3 Settlement_address_right pad0">
									<a href="javascript:void(0)" class="js_chose_address" id="chooseAddress">选择地址</a>
									<a href="javascript:void(0)" class="js_new_address">新增地址</a>
								</div>
							</div>
						</div>
						<!--地址信息结束-->
						<!--配送信息-->
						<div class="shopping_car_list">
							<h3 class="pay_detail_tit">配送信息</h3>
							<div class="dc_info_box clearfix">
								<p class="parts_search_list">
									<i class="search_chose"></i>
									<span>快递（到付）</span>
								</p>
								<p class="parts_search_list">
									<i class="search_chose search_chose_hover"></i>
									<span>物流<em class="color_red">（费用说明：物流费按商品总价10%预收，发货后退还多扣除费用）</em></span>
								</p>
								<p id="satisfyFreeShow">
									<span>满<em id="satisfyFreeMoney"></em>包邮</span>
								</p>
								<div class='numRadio' style="display: none;">
									<input type='radio' name='transportTypeRaDio' value='2' />
									<input type='radio' name='transportTypeRaDio' checked="checked" value='1'/>
								</div>
							</div>
						</div>
						<!--配送信息结束-->
						<!--商品信息-->
						<div class="shopping_car_title">
						<ul class="clearfix col-xs-12 pad0">
							<li class=" col-xs-3 text-center">
								<p>商品名称</p>
							</li>
							<li class=" col-xs-2 text-center">
								<p>配件编号</p>
							</li>
							<li class=" col-xs-2 text-center">
								<p>单价</p>
							</li>
							<li class=" col-xs-2 text-center">
								<p>数量</p>
							</li>
							<li class=" col-xs-2 text-center">
								<p>小计</p>
							</li>
						</ul>
					</div>
						<div class="shopping_car_list">
							<!--列表-->
							<div class="shopping_car_list_tit clearfix">
								<figure class="col-xs-12 shop_name pad0">
								<input type="hidden" value="${webStore.classify}" id="sendAreaId">
									<b class="tips">${fns:getDictLabel(webStore.type, 'store_type', '')}</b>
									<span>${webStore.cnName}</span>
								</figure>
							</div>
							<div class="shopping_car_item clearfix">
							 <form action ="" method="post" id="forms">
							
							<c:forEach items="${list0 }" var="list">
								<div class=" shopping_car_item_a col-xs-12">
								   <c:if test="${list.image!=null }">
									<div class="col-sm-1 col-xs-2 item_img pad0">
										<div class="vel_centers">
											<a href="javascript:void(0)">
											
												<img src="${ctxWeb}/web/file/getFile?filePath=${list.image}" alt="" />
											</a>
										</div>
									</div>
									</c:if>
									<div class="col-sm-6 col-xs-5 shop_msg_ph pad0">
										<figure class="col-sm-4  item_name pad0">
											<div class="vel_centers">
												<p>${list.cnName}</p>
											</div>
										</figure>
										<figure class="col-sm-4 text-center  pad0">
											<div class="vel_centers">
												<p class="order_goods_code">${list.partsCode}</p>
												<p class="order_shopping_cart_id hide">${list.id}</p>
											</div>
										</figure>
										<figure class="col-sm-4 text-center shop_price pad0">
											<div class="vel_centers">
												   		<p>¥ <span class='price_value'>${list.price }</span></p>
													
												
											</div>
										</figure>
									</div>
									<div class="col-sm-2 col-xs-5 ph_number">
										<figure class="col-sm-12 text-center pad0">
										  
											<div class="vel_centers">
											     <input name="goodsId" value="${list.id}" type="hidden"/>
												<p class="item_amout">
													<a href="javascript:void(0);" class="plus js_reduce">-</a>
													<input type="number" id="goodsNum" name="goodsNum" value="${list.goodsNum}" class="num shop_num count" shoppingCartGoodsId="${list.id}">
													<a href="javascript:void(0);" class="plus js_plus">+</a>
												</p>
											</div>
											
										</figure>
									</div>
									<div class="col-sm-2 item_totle text-center  pad0">
										<div class="vel_centers">
											<p>¥ <span class="sum_price">0.00</span></p>
										</div>
									</div>
								</div>
								</c:forEach>
								</form>
							</div>
							<!--列表结束-->
							<div class="shopping_info_box">
								<p>
									<em>商品合计：</em>
									<span>¥<span class="sum_accont"></span></span>
								</p>
								<p class="yf_wl">
									<em>运费：</em>
									<span>¥<span class="sum_yf"></span><em class="color_red">预收</em></span>
								</p>
								<p class="yf_kd hide">
									<em>运费：</em>
									<span class="sum_yf">到付</span>
								</p>
								<p class="pay_money">
									<em>实付金额：</em>
									<span>¥<span class="sum_accont_all"></span></span>
								</p>
							</div>
							<div class="shopping_car_price confirm_order">
								<a href="javascript:void(0)" onclick="confirmOrder()">提交订单</a>
							</div>
						</div>
						<!--商品信息结束-->
					</div>	
				</div>
			</div>
		</div>
		<!--购物车结束-->	
		<!--新增修改地址弹框-->
		<div class="jd_tk" id="proment_new_address" style="display: none;">
			<div class="address_Bomb">
				<h3 class="address_Bomb_title">
					新增地址
					<span class="close_page">
						<img src="${ctxWebStatic }/images/close.png" alt="" />
					</span>
				</h3>
				<div class="address_Bomb_info clearfix">
					<div class="address_Bomb_left col-sm-9 clearfix">
						<input type="hidden" class="receiveId">
						<figure class="form-group clearfix">
							<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
						    	收件人：
						    </label>
						    <div class="col-sm-8 col-xs-7 pad0">
						      	<input type="text" class="form-control receiveName" placeholder="请填写收件人">
						    </div>
						</figure>
						<figure class="form-group clearfix">
							<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
						    	联系方式：
						    </label>
						    <div class="col-sm-8 col-xs-7 pad0">
						      	<input type="text" class="form-control receivePhone" placeholder="请填写联系方式">
						    </div>
						</figure>
						<figure class="form-group clearfix">
							<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
						    	所在地区：
						    </label>
						    <div class="col-sm-8 col-xs-7 pad0">
						      	<div class="tk_selcet"><!-- container -->									  	
									<select class="hy col-xs-12 col-sm-3 provinceSelect">
										<option value="">省</option>
									</select>
									<select class="hy col-xs-12 col-sm-3 citySelect">
										<option value="">市</option>
									</select>
									<select class="hy col-xs-12 col-sm-3 areaSelect">
										<option value="">区</option>
									</select>
								</div>
						    </div>
						</figure>
						<figure class="form-group clearfix">
							<label  class="col-sm-3 col-xs-5 fp_lable control-label ">
						    	详细地址：
						    </label>
						    <div class="col-sm-8 col-xs-7 pad0">
						      	<input type="text" class="form-control receiveAddress" placeholder="请填写详细地址">
						    </div>
						</figure>
					</div>
					<div class="col-sm-3 default_left">
						<div class="default_box">
							<i class="search_chose"></i>
							<span>设为默认地址</span>
						</div>
						<div class='numRadio' style="display: none;">
							<input type='checkbox' name='isDef' value='1' />
						</div>
					</div>
				</div>
				<div class=" shopping_car_price  proment_chose_address_save">
					<a href="javascript:void(0)">确认</a>
				</div>
			</div>
		</div>
		<!--新增修改地址弹框结束-->
		<!--选择地址弹框-->
		<div class="jd_tk" id="proment_chose_address" style="display: none;">
			<div class="address_Bomb">
				<h3 class="address_Bomb_title">
					选择地址
					<span class="close_page">
						<img src="${ctxWebStatic }/images/close.png" alt="" />
					</span>
				</h3>
				<div class="chose_set_box">
				
				</div>
				<div class=" shopping_car_price shopping_car_confirm">
					<a href="javascript:void(0)">确认</a>
				</div>
			</div>
		</div>
		<!--选择地址弹框结束-->
		<form action="${ctxWeb}/shoppingCart/vipConfirmOrder" id="vipConfirmOrderForm" method="post">
			<input name="isFree" id="isSatisfyFreeInput" type="hidden"/>
			<input name="transportType" value="1" id="transportType" type="hidden"/>
			<input id="userId" name="userId" value="${userId }" type="hidden"/>
			<input id="storeCode" name="storeCode" value="${storeCode }" type="hidden" >
			<input id="saleMan" name="saleMan" value="${saleMan }" type="hidden">
		</form>
		</body>
	</html>
